package com.wanwu.channel.dao.entity;

import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.lang.reflect.Field;
import java.util.Date;

public class ChannelApplyClearanceEntity implements Serializable {
    private static final long serialVersionUID = -7548599955014590162L;

    private String bizCode;

    private Long id;

    private String channelNo;

    private String transactionId;

    private String thirdOrderNo;

    private String thirdDeclareNo;

    private String identityCheck;

    private String verDept;

    private String payCode;

    private Integer orderAmount;

    private Integer subOrderAmount;

    private Integer transportAmount;

    private Integer productAmount;

    private Integer duty;

    private Integer channelApplyClearanceStatus;

    private String bizOrderNo;

    private String subOrderNo;

    private String thirdSubOrderNo;

    private String merchantCustomsNo;

    private String customsPlace;

    private String merchantCustomsName;

    private String isSplit;

    private String certId;

    private String certName;

    private String actionTyep;

    private String currency;

    private Integer payType;

    private String thirdApplyClearanceStatus;

    private String remark;

    private String customsCode;

    private String customsInfo;

    private String customsReturnTime;

    private String errorCode;

    private String errorMsg;

    private Integer retryTimes;

    private Date createTime;

    private Date updateTime;

    private Date payTime;

    public String getBizCode() {
        return bizCode;
    }

    public void setBizCode(String bizCode) {
        this.bizCode = bizCode;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getChannelNo() {
        return channelNo;
    }

    public void setChannelNo(String channelNo) {
        this.channelNo = channelNo == null ? null : channelNo.trim();
    }

    public String getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId == null ? null : transactionId.trim();
    }

    public String getThirdOrderNo() {
        return thirdOrderNo;
    }

    public void setThirdOrderNo(String thirdOrderNo) {
        this.thirdOrderNo = thirdOrderNo == null ? null : thirdOrderNo.trim();
    }

    public String getThirdDeclareNo() {
        return thirdDeclareNo;
    }

    public void setThirdDeclareNo(String thirdDeclareNo) {
        this.thirdDeclareNo = thirdDeclareNo == null ? null : thirdDeclareNo.trim();
    }

    public String getIdentityCheck() {
        return identityCheck;
    }

    public void setIdentityCheck(String identityCheck) {
        this.identityCheck = identityCheck == null ? null : identityCheck.trim();
    }

    public String getVerDept() {
        return verDept;
    }

    public void setVerDept(String verDept) {
        this.verDept = verDept == null ? null : verDept.trim();
    }

    public String getPayCode() {
        return payCode;
    }

    public void setPayCode(String payCode) {
        this.payCode = payCode == null ? null : payCode.trim();
    }

    public Integer getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(Integer orderAmount) {
        this.orderAmount = orderAmount;
    }

    public Integer getSubOrderAmount() {
        return subOrderAmount;
    }

    public void setSubOrderAmount(Integer subOrderAmount) {
        this.subOrderAmount = subOrderAmount;
    }

    public Integer getTransportAmount() {
        return transportAmount;
    }

    public void setTransportAmount(Integer transportAmount) {
        this.transportAmount = transportAmount;
    }

    public Integer getProductAmount() {
        return productAmount;
    }

    public void setProductAmount(Integer productAmount) {
        this.productAmount = productAmount;
    }

    public Integer getDuty() {
        return duty;
    }

    public void setDuty(Integer duty) {
        this.duty = duty;
    }

    public Integer getChannelApplyClearanceStatus() {
        return channelApplyClearanceStatus;
    }

    public void setChannelApplyClearanceStatus(Integer channelApplyClearanceStatus) {
        this.channelApplyClearanceStatus = channelApplyClearanceStatus;
    }

    public String getBizOrderNo() {
        return bizOrderNo;
    }

    public void setBizOrderNo(String bizOrderNo) {
        this.bizOrderNo = bizOrderNo == null ? null : bizOrderNo.trim();
    }

    public String getSubOrderNo() {
        return subOrderNo;
    }

    public void setSubOrderNo(String subOrderNo) {
        this.subOrderNo = subOrderNo == null ? null : subOrderNo.trim();
    }

    public String getThirdSubOrderNo() {
        return thirdSubOrderNo;
    }

    public void setThirdSubOrderNo(String thirdSubOrderNo) {
        this.thirdSubOrderNo = thirdSubOrderNo == null ? null : thirdSubOrderNo.trim();
    }

    public String getMerchantCustomsNo() {
        return merchantCustomsNo;
    }

    public void setMerchantCustomsNo(String merchantCustomsNo) {
        this.merchantCustomsNo = merchantCustomsNo == null ? null : merchantCustomsNo.trim();
    }

    public String getCustomsPlace() {
        return customsPlace;
    }

    public void setCustomsPlace(String customsPlace) {
        this.customsPlace = customsPlace == null ? null : customsPlace.trim();
    }

    public String getMerchantCustomsName() {
        return merchantCustomsName;
    }

    public void setMerchantCustomsName(String merchantCustomsName) {
        this.merchantCustomsName = merchantCustomsName == null ? null : merchantCustomsName.trim();
    }

    public String getIsSplit() {
        return isSplit;
    }

    public void setIsSplit(String isSplit) {
        this.isSplit = isSplit == null ? null : isSplit.trim();
    }

    public String getCertId() {
        return certId;
    }

    public void setCertId(String certId) {
        this.certId = certId == null ? null : certId.trim();
    }

    public String getCertName() {
        return certName;
    }

    public void setCertName(String certName) {
        this.certName = certName == null ? null : certName.trim();
    }


    public String getActionTyep() {
        return actionTyep;
    }

    public void setActionTyep(String actionTyep) {
        this.actionTyep = actionTyep == null ? null : actionTyep.trim();
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency == null ? null : currency.trim();
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public String getThirdApplyClearanceStatus() {
        return thirdApplyClearanceStatus;
    }

    public void setThirdApplyClearanceStatus(String thirdApplyClearanceStatus) {
        this.thirdApplyClearanceStatus = thirdApplyClearanceStatus == null ? null : thirdApplyClearanceStatus.trim();
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    public String getCustomsCode() {
        return customsCode;
    }

    public void setCustomsCode(String customsCode) {
        this.customsCode = customsCode == null ? null : customsCode.trim();
    }

    public String getCustomsInfo() {
        return customsInfo;
    }

    public void setCustomsInfo(String customsInfo) {
        this.customsInfo = customsInfo == null ? null : customsInfo.trim();
    }

    public String getCustomsReturnTime() {
        return customsReturnTime;
    }

    public void setCustomsReturnTime(String customsReturnTime) {
        this.customsReturnTime = customsReturnTime == null ? null : customsReturnTime.trim();
    }

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode == null ? null : errorCode.trim();
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg == null ? null : errorMsg.trim();
    }

    public Integer getRetryTimes() {
        return retryTimes;
    }

    public void setRetryTimes(Integer retryTimes) {
        this.retryTimes = retryTimes;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    /**
     * 敏感数据过滤
     * @return
     */
    @Override
    public String toString() {
        return (new ReflectionToStringBuilder(this, ToStringStyle.JSON_STYLE) {
            @Override
            protected boolean accept(Field f) {
                return super.accept(f) && !f.getName().equals("certName") && !f.getName().equals("certId");
            }
        }).toString();
    }
}